package com.qiuhui.spring_boot_02.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @ClassName: BussinessCar
 * @Description: TODO
 * @author: tian
 * @date: 2021/3/30  5:12 下午
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@PropertySource(value = "classpath:application.properties")
public class BussinessCar {
    @Value("${bussinessCar.level}")
    private Integer level;
    @Value("${bussinessCar.brand}")
    private String brand;
}